from tkinter import *
x = int(input())
y = int(input())
n = int(input())
xmax = x + 20 * n
ymax = y + 30 * n
if (xmax <= 500) and (ymax<=500):
    window = Tk()
    window.geometry('500x500')
    canvas=Canvas(bg='White', heigh=500, width=500)
    canvas.pack(anchor=CENTER, expand=1)
    canvas.create_polygon(x, y, x+900*n, y, x+10*n, y+10*n, x+20*n, y+10*n,\
                          x+20*n, y+20*n, x+10*n, y+20*n,\
                          x+10*n, y+30*n, x, y+30*n, x, y+20*n, x, y+10*n,\
                              fill='BLUE', outline='RED')
    window.mainloop()
else:
    print('Размер фигуры превышает максимальный размер поля')
